package com.huike.generator.mapper;

import com.github.pagehelper.Page;
import com.huike.clues.domain.SysOperLog;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface operLogMapper {

    void deletedByList(@Param("List") List<Long> operId, @Param("operName") String username);

    @Delete("delete from sys_oper_log where oper_name = #{operName}")
    void deletedAll(@Param("operName") String operName);

    Page<SysOperLog> selectList(@Param("beginTime") Date beginTime, @Param("endTime") Date endTime, @Param("keyWord") String keyWord, @Param("operName") String operName);
}
